/*
 * Copyright 2007 The semap project development team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Created by myn at 07.08.2007 16:54:24.
 *
 * TODO <<insert description>>.
 *
 * $Id: URIIterator.java 375 2007-08-16 04:58:41Z dulanov $
 */
package com.google.code.contactserv.model;

import java.util.Iterator;

import com.hp.hpl.jena.rdf.model.ResIterator;
import com.hp.hpl.jena.rdf.model.Resource;

/**
 * @author myn
 */
public class URIIterator implements Iterator<String> {

	private ResIterator iter;

    public URIIterator(ResIterator ri) {
		iter = ri;
	}

    public boolean hasNext() {
        return iter.hasNext();
    }

    public String next() {
        Resource r = iter.nextResource();
        return r.getURI();
    }

    public void remove() {
    }
}
